package cn.tedu.xzs.admin.questionmanagement.service;

import cn.tedu.xzs.admin.questionmanagement.pojo.param.AnswerAddNewParam;
import cn.tedu.xzs.admin.questionmanagement.pojo.param.QuestionAddNewParam;
import cn.tedu.xzs.admin.questionmanagement.pojo.vo.QuestionVO;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Transactional
public interface QuestionService {

    void addNew(QuestionAddNewParam question, List<AnswerAddNewParam> answers);

    PageInfo<QuestionVO> getQuestionVOPage(Integer pageNum, Integer pageSize);
}
